package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 离职老师带班的学生
 * </p>
 *
 * @author hpiggy
 * @since 2024-12-19
 */
@Data
@TableName("leave_teacher_student")
@ApiModel(value = "LeaveTeacherStudent对象", description = "离职老师带班的学生")
public class LeaveTeacherStudent implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("校区id")
    private Long schoolId;

    @ApiModelProperty("转入校区id")
    private Long inSchoolId;

    @ApiModelProperty("校长id")
    private Long schoolmasterId;

    @ApiModelProperty("离职老师或转校前老师")
    private Long teacherId;

    @ApiModelProperty("科目")
    private Long subjectsId;

    @ApiModelProperty("学生")
    private Long studentId;

    @ApiModelProperty("1：离职老师，2：转校前老师")
    private Integer type;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("带班老师")
    @TableField(exist = false)
    private Long gradeTeacherId;


}
